﻿using System;
using System.Net;
using Net.Common;

namespace Net.Server
{
    [Obsolete("请直接继承ClientPeerBase实现你的客户端对等端类型")]
    public class NetPlayer : ClientPeerBase
    {
    }

    [Obsolete("请直接继承ClientPeerBase实现你的客户端对等端类型")]
    public class NetScene<T> : SceneBase<T> where T : ClientPeerBase, new()
    {
    }
}

namespace Net.Client 
{
    public partial class ClientBase 
    {
        /// <summary>
        /// 当从服务器获取的客户端地址点对点
        /// </summary>
        [Obsolete("此事件已弃用", true)]
        public Action<IPEndPoint> OnP2PCallback { get; set; }

        [Obsolete("请使用NetworkTick进行网络更新")]
        public void SingleNetworkProcessing() => NetworkTick();
    } 
}

namespace Net.Component 
{
    [Obsolete("直接继承Net.Common.OperCommand实现")]
    public class Command : OperCommand
    {
    }
}